import { StoreOptions } from "vuex";

export default {
    namespaced: true,
    state: () => ({
        loginUser: {
            userId:0,
            userName: "郭富城",
            userIdentity: "外科医生",
            PartMent:"外科部门",
            doctorRole:"user",
        },
        
    }),
    //用actions去控制mutations，mutations再去控制前端显示
    actions: {
    },
    mutations: {
        updateUser(state, payload) {
            state.loginUser=payload;
        }
    },
} as StoreOptions<any>;